Get the current weekΒΆ

Get the current week.
import datetime

curr_date = datetime.date(2018,10,14)

year, week_num, day_of_week = curr_date.isocalendar()

print("Year %d, Week Number %d, Day of the Week %d" \
        %(year, week_num, day_of_week))

Output:

Year 2018, Week Number 41, Day of the Week 7